import 'package:flutter/material.dart';
import 'package:hospitable_rental/utils/config.dart';
import 'package:hospitable_rental/viewmodels/city_viewmodel.dart';
import 'package:provider/provider.dart';

bool stringIsNullOrEmpty(String? text) {
  if (text == null || text == "") return true;
  return false;
}

String getAreaId(BuildContext context) {
  return context.read<CityViewModel>().city.id ?? Config.availableCitys.first.id.toString();
}
